package devbureau.fstore.common;

import java.util.ArrayList;
import java.util.Date;
import org.apache.log4j.Logger;

public class OrderDataImpl<T extends OrderLine> extends OrderImpl implements OrderData{
    private static final Logger log = Logger.getLogger(OrderDataImpl.class);
    private Integer id = null;
    private Date modified = null;
    private Date created = null;
    private Double price = null;
    private Double margin = null;
    private String sellerLabel = null;

    
    public OrderDataImpl( Integer id, ArrayList<T> lines, CustomerData customer,String seller,String sellerLabel,OrderStatus status,Date created, Date modified, Double price, Double margin) {
        super ( lines, customer.getId(), seller );
        this.id = id;
        this.created = created;
        this.modified = modified;
        this.status = status;
        this.customer = customer;
        this.price = price;
        this.margin = margin;
        this.sellerLabel = sellerLabel;
    }

    public Integer getId() {
        return id;
    }

    public Date getCreated() {
        return created;
    }

    public Date getModified() {
        return modified;
    }

    public Double getPrice() {
        return price;
    }

    public Double getMargin() {
        return margin;
    }
    
    public String getSellerLabel() {
        return sellerLabel;
    }
}
